package com.zhiwei.fast.ext

import androidx.recyclerview.widget.RecyclerView
import com.zhiwei.most.wear.widget.ScalingScrollLayoutCallback
import com.zhiwei.most.wear.widget.WearableLinearLayoutManager


/**
 * Create by zhiweizhu on 2022/2/26
 */
fun RecyclerView.wearLinear(
    @RecyclerView.Orientation orientation: Int = RecyclerView.VERTICAL,
    reverseLayout: Boolean = false,
    stackFromEnd: Boolean = false
): RecyclerView {
    layoutManager = WearableLinearLayoutManager(context).apply {
        setOrientation(orientation)
        setReverseLayout(reverseLayout)
        setStackFromEnd(stackFromEnd)
    }
    return this
}
